use "C:\Users\atboutton\Google Drive\BJPSreplication\bjps.dta" 

gen t=1

collapse (sum) purge3 purge8 t, by(ccode newregime5)

gen purge3yr = purge3/t
gen purge8yr=purge8/t

save "C:\Users\atboutton\Google Drive\BJPSreplication\Figure1\purges.dta", replace

